﻿@model PagedList.IPagedList<e_commerce.Models.CommentModel>
@using PagedList.Mvc
@{
    ViewBag.Title = "AllComment";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<div class="message-wrap">
    <div class="admin-nav">
        <div class="nav-text">
            <span>
                @TempData["f-nav"] > @TempData["s-nav"]
            </span>
        </div>
    </div>
    <div class="message-wrap-tab">
        <div class="box">
            <div class="box-head">
                <div class="box-title">
                    <img src="~/Image/icon_thing.png" />
                    <span>全部评论</span>
                </div>
            </div>
            <div class="box-body">
                <div class="wrap-tab">
                    <table class="layui-table" lay-skin='line'>
                        <colgroup>
                            <col width="150">
                            <col width="200">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                                <th>评论编号</th>
                                <th>订单明细</th>
                                <th>评论等级</th>
                                <th>买家评论</th>
                                <th>评论时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in Model)
                            {
                                <tr>
                                    <td>@item.CommentId</td>
                                    <td>@item.GoodsName</td>
                                    <td>@item.CommentRank</td>
                                    <td>@item.CommentDetail</td>
                                    <td>@item.CreateTime</td>
                                    <td><a href="javascripts;;">回复</a></td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        
        <div class="wrap-pages">
            @Html.PagedListPager(Model, page => Url.Action("AllComment",new { page}))
        </div>
    </div>
</div>

@section Styles{   
}

@section Scripts{
    <script src="~/JS/AllComment.js"></script>
}